package com.sunlee.common.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sunlee.common.service.dto.ThirdProductDTO;
import com.sunlee.common.service.entity.ThirdCategoryEntity;
import com.sunlee.common.service.entity.ThirdProductCategoryMappingEntity;
import com.sunlee.common.service.entity.ThirdProductEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品分类映射表
 *
 * @author sunlee
 * @date 2023-03-04
 */
@Mapper
public interface ThirdProductCategoryMappingDao extends BaseMapper<ThirdProductCategoryMappingEntity> {

    IPage<ThirdProductDTO> pageRelatedByCid(@Param("page") IPage<ThirdProductCategoryMappingEntity> page, @Param("id") long id);

    IPage<ThirdCategoryEntity> pageRelatedByPid(@Param("page") IPage<ThirdProductCategoryMappingEntity> page, @Param("id") long id, @Param("type") int type);
}




